<?= View::factory('pieces/left_body', array('catalog' => $catalog, 'parent_id' => NULL, 'type' => 0)) ?>
<div class="right_body">
	<div class="right_body_cont">
		<h1><?= $sitetext['gallery']['_value'] ?></h1>
		<? foreach ($gallery as $key => $item): ?>
			<? if (($key+1) % 3 == 0): ?>
				<a href="<?= URL::site('static/uploads/gallery/'.$item->image) ?>" class="fancybox" rel="group">
					<img src="<?= URL::site('static/uploads/gallery/small/'.$item->image) ?>" alt="" class="body_image" style="margin: 0 0 15px 0" />
				</a>
			<? else: ?>
				<a href="<?= URL::site('static/uploads/gallery/'.$item->image) ?>" class="fancybox" rel="group">
					<img src="<?= URL::site('static/uploads/gallery/small/'.$item->image) ?>" alt="" class="body_image" style="margin: 0 15px 15px 0" />
				</a>
			<? endif ?>
		<? endforeach ?>
	</div>
</div>